<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app">
        <!-- 1.选择一个 -->
        <select name="abc" v-model="fruit">
            <option value="苹果">苹果</option>
            <option value="香蕉">香蕉</option>
            <option value="葡萄">葡萄</option>
            <option value="火龙果">火龙果</option>
            <option value="橘子">橘子</option>
        </select>
        <h2>你选择的是：{{fruit}}</h2>
        <!-- 2.多选 -->
        <select name="abc" v-model="fruits" multiple>
            <option value="苹果">苹果</option>
            <option value="香蕉">香蕉</option>
            <option value="葡萄">葡萄</option>
            <option value="火龙果">火龙果</option>
            <option value="橘子">橘子</option>
        </select>
        <h2>你选择的是：{{fruits}}</h2>
    </div>
</body>
<script src='../js/vue.js'></script>
<script>
    let app = new Vue({
        el: '#app',
        data: {
             msg:'hello vue.js',
             fruit:'火龙果',
             fruits:[]
        },
        methods: {}
    })
</script>
</html>